package top.tangyh.lamp.care.vo.update;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import java.time.LocalDateTime;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;
import top.tangyh.basic.base.entity.SuperEntity;
import java.io.Serializable;

/**
 * <p>
 * 表单修改方法VO
 * 全局的排班表
 * </p>
 *
 * @author zqb
 * @date 2024-07-18 15:42:26
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString(callSuper = true)
@Accessors(chain = true)
@EqualsAndHashCode
@Builder
@Schema(description = "全局的排班")
public class BWorkPlanUpdateVO implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "")
    @NotNull(message = "请填写", groups = SuperEntity.Update.class)
    private Long id;

    /**
     * 排班名称唯一
     */
    @Schema(description = "排班名称唯一")
    @NotEmpty(message = "请填写排班名称唯一")
    @Size(max = 64, message = "排班名称唯一长度不能超过{max}")
    private String workName;
    /**
     * 开始时间 6:00 时分
     */
    @Schema(description = "开始时间 6:00 时分")
    @Size(max = 32, message = "开始时间 6:00 时分长度不能超过{max}")
    private String startTime;
    /**
     * 结束时间 8:00 时分
     */
    @Schema(description = "结束时间 8:00 时分")
    @Size(max = 32, message = "结束时间 8:00 时分长度不能超过{max}")
    private String endTime;
    /**
     * 间隔 分钟
     */
    @Schema(description = "间隔 分钟")
    private Integer interval;
    /**
     * 排序
     */
    @Schema(description = "排序")
    private Integer sort;
    /**
     * 是否启用
     */
    @Schema(description = "是否启用")
    @NotNull(message = "请填写是否启用")
    private Integer enabled;

    /**
     * 是否删除
     */
    @Schema(description = "是否删除")
    @NotNull(message = "请填写是否删除")
    private Integer isDeleted;
    /**
     * 备注
     */
    @Schema(description = "备注")
    @Size(max = 128, message = "备注长度不能超过{max}")
    private String desc;
    /**
     * 跨天天数,默认为0
     */
    @Schema(description = "跨天天数,默认为0")
    @NotNull(message = "请填写跨天天数,默认为0")
    private Integer addDay;


}
